#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ===============================================================================
#
# Copyright (c) 2020 <> All Rights Reserved
#
#
# File: /c/Users/Administrator/courses/DeepLearning/中国高科_深度学习（V2）/教材/neural-networks-and-deep-learning-master/src/run/run_p71.py
# Author: Hai Liang Wang
# Date: 2024-11-11:14:51:18
#
# ===============================================================================

"""
Run code on Page 33
"""
__copyright__ = "Copyright (c) 2024, Hai Liang Wang<hai@chatopera.com> All Rights Reserved"
__author__ = "Hai Liang Wang"
__date__ = "2024-11-11:14:51:18"

import os
import sys
curdir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(curdir, os.pardir))

if sys.version_info[0] < 3:
    raise RuntimeError("Must be using Python 3")
else:
    unicode = str

import mnist_loader
import network

def main():
    print("Run code on Page 33 ...")
    training_data, validation_data, test_data = mnist_loader.load_data_wrapper()
    net = network.Network([784, 100, 10])
    net.SGD(training_data, 30, 10, 3.0, test_data=test_data)

if __name__ == '__main__':
    main()
